<div id="result">
<?php echo $this->Session->flash(); ?>
<h5>Confirm Suspension?</h5>
<form method="post" id="suspendfrm" action="<?php echo Configure::read('base_url')."users/suspend/".$id;?>">
<table cellspacing="0" id="mytable">
          <tbody>
          <tr>
            <td colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="144" colspan="2">
<?php echo $this->Form->textarea('suspend',array('value'=>'Enter Reason/Comments here','onfocus'=>"if(this.value=='Enter Reason/Comments here'){this.value=''}", 'onblur'=>"if(this.value==''){this.value='Enter Reason/Comments here'}",'label'=>false,'cols'=>50,'rows'=>1,'class'=>"required", 'title'=>"Enter reason here")); ?>
</td>
</tr>
<tr align="left">

<td width="3" align="right"><input type="submit" style="background:#73AE0B; color:#fff; font-size:14px;" name="button" id="button" value="Yes" /></td>
<td width="347" align="left"><input type="button" class="popupClose" style="background:#73AE0B; color:#fff; font-size:14px;" name="button" id="button" value="No" /></td>
</tr>
</table>
</td>
</tr>
</tbody></table>
</form>
</div>
<?php  echo $html->script(array("jquery.min.js","jquery.form.js","jquery.validate.js")); ?>
<script type="text/javascript">
 jQuery(document).ready(function(){
 // show a simple loading indicator
		jQuery(":button.popupClose").click(function(){
		disablePopup();
		return false;
	});


		var v = jQuery("#suspendfrm").validate({
			submitHandler: function(form) {
				jQuery(form).ajaxSubmit({
					target: "#result"
				});
			}
		});
                
	});
 </script>